package com.phone.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.phone.dao.AdminDao;
import com.phone.entity.Admin;
import com.phone.entity.Store;
import com.phone.entity.User;
import com.phone.service.AdminService;

@Service
@Transactional
public class AdminServiceimpl implements AdminService {
	@Autowired
	private AdminDao adminDaoimpl;

	@Override
	public List<Store> allstore() {
		return adminDaoimpl.allstore();
	}

	@Override
	public List<User> alluser() {
		return adminDaoimpl.alluser();
	}

	@Override
	public boolean upadmin(Admin admin) {
		return adminDaoimpl.upadmin(admin);
	}

	
	
}
